from models import db

class Tag(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(80),nullable=False)
    description = db.Column(db.String(200))

    
    def __init__(self, dic):
        for key,value in dic.items():
            setattr(self, key, value)

    def __repr__(self):
        return '{}'.format(self.name)
